Skip to content

OPX package operation

Jeff Yin edited this page Jul 26, 2019 · 4 revisions

This information describes the standard Linux Debian distribution operation for the OPX package. See OPX commands for specific Linux management command information.

Log into switch

The default admin username is part of the Linux sudo group for executing privilege commands. The default password is admin but you must change the password the first-time you log into the device. Before continuing, verify you have connected to the serial console on the device.

Debian GNU/Linux 9 OPX ttyS0

OPX login: admin
Password:
Linux OPX 4.9.110-opx #1 SMP Thu Nov 15 23:51:16 etc 2018 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

admin@OPX:~$

Management interface

The Management port name is eth0, and the Management interface is configured to automatically obtain its IP address using DHCP by default. You can change the behavior by modifying the /etc/network/interfaces file with these parameters:

auto eth0
iface eth0
inet static address 10.11.133.40
netmask 255.255.0.0
gateway 10.11.133.254

After modifying the interfaces file, restart the networking service:

$ service networking restart

Manage system services

Use the service <servicename> status command to check the status of the service. The command output indicates if the service is up and running or inactive. You can also use the systemctl command to check the service status.

$ service snmpd status
  snmpd.service - LSB: SNMP agents
  Loaded: loaded (/etc/init.d/snmpd)
  Active: active (running) since Fri 2018-11-18 02:16:06 UTC; 2h 39min ago
  CGroup: /system.slice/snmpd.service
          └─930 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux ...  

Stop service

$ service snmpd stop
$ service snmpd status
  snmpd.service - LSB: SNMP agents
  Loaded: loaded (/etc/init.d/snmpd)
  Active: inactive (dead) since Fri 2018-11-16 05:00:27 UTC; 3s ago
  Process: 3370 ExecStop=/etc/init.d/snmpd stop (code=exited, status=0/SUCCESS)

Start service

$ service snmpd start
$ service snmpd status
  snmpd.service - LSB: SNMP agents
  Loaded: loaded (/etc/init.d/snmpd)
  Active: active (running) since Wed 2016-02-17 05:00:39 UTC; 1s ago
  Process: 3370 ExecStop=/etc/init.d/snmpd stop (code=exited, status=0/SUCCESS)
  Process: 3395 ExecStart=/etc/init.d/snmpd start (code=exited, status=0/SUCCESS)
  CGroup: /system.slice/snmpd.service
          └─3399 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux...

Restart service

$ service snmpd restart
$ service snmpd status
  snmpd.service - LSB: SNMP agents
  Loaded: loaded (/etc/init.d/snmpd)
  Active: active (running) since Fri 2018-11-16 05:00:46 UTC; 1s ago
  Process: 3407 ExecStop=/etc/init.d/snmpd stop (code=exited, status=0/SUCCESS)
  Process: 3412 ExecStart=/etc/init.d/snmpd start (code=exited, status=0/SUCCESS)
  CGroup: /system.slice/snmpd.service
          └─3416 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux..
Clone this wiki locally