Sponsored Content
Operating Systems AIX Chef client on VIOs? How do you manage your VIO configs? Post 303039659 by RecoveryOne on Friday 11th of October 2019 08:33:15 AM
Old 10-11-2019
Oh, its worse than 2.2.5. I'd actually be happy if it was .5. Let us say 2.2.2 something!

And yes well aware version not supported. Also paying out the teeth for 'extended' support for AIX since it still has 6.1 lpar's underneath the VIOS. Yes, yes I know all about the issues. Just I'm beholden to the customer and they have signed off on the risks. So if anything happens they are fully aware. Every quarter they are notified that they've signed x document stating that they accept all risk for running out of support, etc, etc.

I have a few boxes I can stand up that version of VIOS on, or find a close match with pure AIX.

As to chef, I'm learning it. As you can see from my post history, my scripting skills aren't that great. So its been fun. Few of my goals are to manage resolv.conf, services, edit/verify ODM entries (think hardware and core dump notifications). Right now starting off small with just ODM error notifications. Finally got that cookbook wrapped up. Likely not the best and if posted publicly people would rip it to shreds but seems to work for the various edge cases I threw at it.
 

7 More Discussions You Might Find Interesting

1. AIX

vio server and vio client

Hi, I want to know wheather partition size for installation of vio client can be specified on vio server example If I am installing vio server on blade with 2*300gb hard disk,after that I want to create 2 vio client (AIX Operating system) wheather I can specify hard disk size while... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

2. AIX

rebooting vio client

Hi, I would like to reboot vio client but I am not able to access vio client(I am not able to get putty) , I am able to get putty of vio server, is there any command by using which from vio server I can reboot vio client? (3 Replies)
Discussion started by: manoj.solaris
3 Replies

3. AIX

Finding cpu information on vio client

Hi, I am having single p series blade with Single Physcial CPU with dual core, on that vio server is installed, I have created vio client allocate 0.9 each cpu , now when I am running prtconf command on vio client it is showing "2" no of processor, My query using which command it will... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

4. AIX

Unable to connect VIO client

Hi I am facing very strange issue on my vio server 5 vio clients are confgured, now I am to connect 3 vio client , i am unable to connect 2 vio client my ip address,subnet mask,gateway is correct. i have rebooted and reconfigured the ip address, but issue is persists. Kindly suggest how to... (0 Replies)
Discussion started by: manoj.solaris
0 Replies

5. AIX

how will i know if a lun has been already mapped to a vio client

Hi im logged in to the vio servers now. when i give # lspv | wc -l i get the count as 6246 how will i know if a lun has been already mapped to a vio client or it is left free without mapping to any of the vio client ? (1 Reply)
Discussion started by: newtoaixos
1 Replies

6. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

7. AIX

cdrom confusion on the vio client lpar

Hi In my vio server I have the below output $ lsvopt | grep -i SAPSITGS sapsitgs_cdrom TL12UP.iso 3182 In my vio client lpar I have the below output root@sapsitgs:/ # lsdev -Cc cdromcd0 Available Virtual SCSI Optical Served by VIO Server cd1... (1 Reply)
Discussion started by: newtoaixos
1 Replies
SHEF(1) 							    Chef Manual 							   SHEF(1)

NAME
shef - Interactive Chef Console SYNOPSIS
shef [named configuration] (options) -S, --server CHEF_SERVER_URL The chef server URL -z, --client chef-client mode -c, --config CONFIG The configuration file to use -j, --json-attributes JSON_ATTRIBS Load attributes from a JSON file or URL -l, --log-level LOG_LEVEL Set the logging level -s, --solo chef-solo shef session -a, --standalone standalone shef session -v, --version Show chef version -h, --help Show command options When no --config option is specified, shef attempts to load a default configuration file: o If a named configuration is given, shef will load ~/.chef/named configuration/shef.rb o If no named configuration is given shef will load ~/.chef/shef.rb if it exists o Shef falls back to loading /etc/chef/client.rb or /etc/chef/solo.rb if -z or -s options are given and no shef.rb can be found. o The --config option takes precedence over implicit configuration paths. DESCRIPTION
shef is an irb(1) (interactive ruby) session customized for Chef. shef serves two primary functions: it provides a means to interact with a Chef Server interactively using a convenient DSL; it allows you to define and run Chef recipes interactively. SYNTAX
Shef uses irb's subsession feature to provide multiple modes of interaction. In addition to the primary mode which is entered on start, recipe and attributes modes are available. PRIMARY MODE
The following commands are available in the primary session: help Prints a list of available commands version Prints the Chef version recipe Switches to recipe mode attributes Switches to attributes mode run_chef Initiates a chef run reset reinitializes shef echo :on|:off Turns irb's echo function on or off. Echo is on by default. tracing :on|:off Turns irb's function tracing feature on or off. Tracing is extremely verbose and expected to be of interest primarily to developers. node Returns the node object for the current host. See knife-node(1) for more information about nodes. ohai Prints the attributes of node In addition to these commands, shef provides a DSL for accessing data on the Chef Server. When working with remote data in shef, you chain method calls in the form object type.operation, where object type is in plural form. The following object types are available: o nodes o roles o data_bags o clients o cookbooks For each object type the following operations are available: object type.all(&block) Loads all items from the server. If the optional code block is given, each item will be passed to the block and the results returned, similar to ruby's Enumerable#map method. object type.show(object name) Aliased as object type.load Loads the singular item identified by object name. object type.search(query, &block) Aliased as object type.find Runs a search against the server and returns the matching items. If the optional code block is given each item will be passed to the block and the results returned. The query may be a Solr/Lucene format query given as a String, or a Hash of conditions. If a Hash is given, the options will be ANDed together. To join conditions with OR, use negative queries, or any advanced search syntax, you must provide give the query in String form. object type.transform(:all|query, &block) Aliased as object type.bulk_edit Bulk edit objects by processing them with the (required) code block. You can edit all objects of the given type by passing the Sym- bol :all as the argument, or only a subset by passing a query as the argument. The query is evaluated in the same way as with search. The return value of the code block is used to alter the behavior of transform. If the value returned from the block is nil or false, the object will not be saved. Otherwise, the object is saved after being passed to the block. This behavior can be exploited to cre- ate a dry run to test a data transformation. RECIPE MODE
Recipe mode implements Chef's recipe DSL. Exhaustively documenting this DSL is outside the scope of this document. See the following pages in the Chef documentation for more information: o http://wiki.opscode.com/display/chef/Resources o http://wiki.opscode.com/display/chef/Recipes Once you have defined resources in the recipe, you can trigger a convergence run via run_chef EXAMPLES
o A "Hello World" interactive recipe chef > recipe chef:recipe > echo :off chef:recipe > file "/tmp/hello_world" chef:recipe > run_chef [Sat, 09 Apr 2011 08:56:56 -0700] INFO: Processing file[/tmp/hello_world] action create ((irb#1) line 2) [Sat, 09 Apr 2011 08:56:56 -0700] INFO: file[/tmp/hello_world] created file /tmp/hello_world chef:recipe > pp ls '/tmp' [".", "..", "hello_world"] o Search for nodes by role, and print their IP addresses chef > nodes.find(:roles => 'monitoring-server') {|n| n[:ipaddress] } => ["10.254.199.5"] o Remove the role obsolete from every node in the system chef > nodes.transform(:all) {|n| n.run_list.delete('role[obsolete]') } => [node[chef098b2.opschef.com], node[ree-woot], node[graphite-dev], node[fluke.localdomain], node[ghost.local], node[kallistec]] BUGS
The name shef is clever in print but is confusing when spoken aloud. Pronouncing shef as chef console is an imperfect workaround. shef often does not perfectly replicate the context in which chef-client(8) configures a host, which may lead to discrepancies in observed behavior. shef has to duplicate much code from chef-client's internal libraries and may become out of sync with the behavior of those libraries. SEE ALSO
chef-client(8) knife(1) http://wiki.opscode.com/display/chef/Shef AUTHOR
Chef was written by Adam Jacob adam@opscode.com with many contributions from the community. Shef was written by Daniel DeLeo. DOCUMENTATION
This manual page was written by Daniel DeLeo dan@opscode.com. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License. CHEF
Shef is distributed with Chef. http://wiki.opscode.com/display/chef/Home Chef 10.12.0 June 2012 SHEF(1)
All times are GMT -4. The time now is 09:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy