Method: CollinsShell::Ipmi#update
- Defined in:
- lib/collins_shell/ipmi.rb
#update ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/collins_shell/ipmi.rb', line 49 def update call_collins get_collins_client, "update ipmi" do |client| ipmi = client.ipmi_update .tag, :username => .ipmi_username, :password => .ipmi_password, :address => .address, :gateway => .gateway, :netmask => .netmask if ipmi then asset = client.get .tag CollinsShell::Ipmi.print_ipmi asset.ipmi else say_error "update IPMI address" end end end |