Once you have connected to the Operations Manager CLI for the first time (username root, password default), you may perform initial setup tasks from the CLI.
Any additional configuration tasks may performed either using the web UI, or the ogcli command line tool.
Change the IP address on NET1
Upon login, a banner displays NET1's current network addresses:
net1:static1 192.168.0.1/24
net1:dhcp 192.168.67.103/24
To set an alternative static IP address (and optionally DNS and default route), e.g. to make the Operations Manager reachable for ongoing configuration, run:
sudo ogcli update conn default-conn-1 <<'END'
ipv4_static_settings.address="192.168.1.100"
ipv4_static_settings.netmask="255.255.255.0"
ipv4_static_settings.dns1="192.168.1.1"
ipv4_static_settings.gateway="192.168.1.1"
END
Network address information for all interfaces may be displayed by running:
sudo ip address show
Set the root password
On first login, you are prompted to change the default root password. To change the root password at any other time, run:
sudo ogcli update user root 'password="oursecret"'
Create an admin account
For ongoing configuration, we recommend using separate administrator accounts rather than sharing the default root account. Once admin accounts have been created, the root account may be disabled from logging in.
Create a new administrator account:
sudo ogcli create user <<'END'
username="adal"
description="Ada Lovelace"
enabled=true
no_password=false
groups[0]="admin"
password="oursecret"
END
Login as the new administrator, then disable the root account from logging in:
sudo ogcli update user root 'enabled=false'
Comments
0 comments
Article is closed for comments.