Changeset 142
- Timestamp:
- May 21, 2014, 5:05:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r141 r142 70 70 'set-vlan-name' => \&cmd_set_vlan_name, 71 71 'get-vlan-name' => \&cmd_get_vlan_name, 72 'rebootsw' => \&cmd_rebootsw '72 'rebootsw' => \&cmd_rebootsw, 73 73 ); 74 74 … … 1531 1531 } 1532 1532 1533 my $search = $OID_NUMBER{' hpicfReset'} . ".$switch_port";1533 my $search = $OID_NUMBER{'vlanPortDefault'} . ".$switch_port"; 1534 1534 1535 1535 my ($session, $error) = Net::SNMP->session( %session ); … … 1545 1545 } 1546 1546 else { 1547 print "Klask do not find VLAN Id $vlan_idon switch $sw_name on port $switch_port\n";1547 print "Klask do not find VLAN Id on switch $sw_name on port $switch_port\n"; 1548 1548 } 1549 1549 … … 1567 1567 my $switch_name = shift @ARGV || q{}; 1568 1568 1569 if ($switch_name eq q{} or $mac_address eq q{}) {1569 if ($switch_name eq q{}) { 1570 1570 die "Usage: klask rebootsw SWITCH_NAME\n"; 1571 1571 } … … 1591 1591 1592 1592 my $result = $session->set_request( 1593 -delay => 1,1594 1593 -varbindlist => ["$OID_NUMBER{'hpicfReset'}.0", INTEGER, 2], 1595 1594 );
Note: See TracChangeset
for help on using the changeset viewer.