How to GET info(required) from REMEDY URL and acts as input for CHEF
As I am new to chef with Remedy, please let me know what are the steps to integrate Remedy with Chef. Need a synchronization script which will invoke Remedy API and take needed information and infuse same to CHEF as input.
See also questions close to this topic
Unable to locate config files when I tried to run chef-solo
When I ran ChefSolo in my server, it threw this error saying that it couldn't find my config file (solo.rb and nodes file), even though it is literally under my Chef directory.
chef-solo -c solo.rb -j ".\nodes\test.json"
[2019-06-24T07:04:56+00:00] DEBUG: Reading products and relationships... [2019-06-24T07:04:56+00:00] DEBUG: Successfully read products and relationships [2019-06-24T07:04:56+00:00] DEBUG: Searching for the following licenses: ["infra-client", "inspec"] [2019-06-24T07:04:56+00:00] DEBUG: Found license chef_infra_client at C:/Users/simon.lam/.chef/accepted_licenses/chef_in fra_client [2019-06-24T07:04:56+00:00] DEBUG: Found license inspec at C:/Users/simon.lam/.chef/accepted_licenses/inspec [2019-06-24T07:04:56+00:00] DEBUG: Missing licenses remaining:  [2019-06-24T07:04:56+00:00] DEBUG: All licenses present [2019-06-24T07:04:56+00:00] FATAL: Cannot load configuration from .\nodes\local.json PS C:\git\chef> chef -v Chef Development Kit Version: 4.0.60 chef-client version: 15.0.300 delivery version: master (9d07501a3b347cc687c902319d23dc32dd5fa621) berks version: 7.0.8 kitchen version: 2.2.5 inspec version: 4.3.2
when I specified the full path of solo.rb and node config file, it stops complaining
I have tried to installing Chef WorkStation and it still failed with the same error, couldnt find solo.rb. Just wondering if I have missed out any configuration to re-point chef to look into my own git chef directory (C:\git\chef... all my chef cookbooks, nodes and solo.rb are in here). But chef-solo keeps looking for solo.rb in C:\solo.rb, not sure why it does that (maybe the relative path is not working - potential bug).
what is the replacement for eol character for chef resource?
Due to new version promotion of
linecookbook, I'm getting an error for resource replace_or_add that it is failing to pass \n due to eol character. Can anyone suggest what is the replacement ?
Mocking library function is not working properly under context block?
I have a ChefSpec test below, I am not sure if it is a bug in ChefSpec or not. However, whenever I mocked a library function under context block, the mocking library did not mock the value for the function and caused the failure of the test. The odd thing is the test passed (the mocking worked) when all the 'it' blocks stayed inside that context block, but if I add any other 'it' block outside that context block, the mocking will fail to mock the library function and start stepping into them.
Is there any way to fix or work around this? Thanks
context "when site_tool is not set (default)" do #This mocking block is not working properly inside the context block. #If I move everything out of this context block, everything works fine # including the mocking library function below. # The error is basically it tried to step into the library function, # even though its not supposed to as I have mocked it out # Is there a different way of mocking library function #specifically for outside and inside context block?? before do allow_any_instance_of(Chef::Recipe) .to receive(:get_service_account_password) .with(site[:app][:permissions][:base_username]) .and_return("test_password") end it 'adds the default app pool' do is_expected.to add_iis_pool('DefaultAppPool').with( ... ) end ## More complicated 'it' blocks below end
cucumber-js executes all scenarios but it gets stuck in the command propmt
When I start the command to run cucumber, it executes all of the scenarios and all of them pass. However, when it finishes it doesn't exit the process, but remains stuck until I press Ctrl + C. This is important as I want to use it as a command in Jenkins, and it happens that in Jenkins it wouldn't finish ever given what I have just mentioned.
As you can see, the expected behaviour is the one from my unit test. Just exit the process, without me having to Ctrl + C.
Is it possible to put a python function in matlab.engine?
I use matlab.engine package to run matlab codes in python. For example, my matlab function
function res = my_fn(f) res = f(1/2) end
returns value of a function 'f' at x=0. Also, I have a python function
def test_fn(x): res = x**2 return res
Now, how can I run my_fn(test_fn) to return 1/4? Is it possible?
Need Recommendation. SSDT Integration MySQL to MSSQL
Scenario : My SQL data transfer to MS SQL Real-time (if Possible). Table to Table Transfer. The transaction is Time Attendance Biometric for the company so this will take lots of transaction because of the time in and time out of the Employee.
I want some recommendation on the project i'm doing, there is two option i got and if you have other option please.
1st Option Using SSDT Integration Service i will deploy a Task to SQL Agent that will run every 1 minute (Max) Integration of MySQL Table to MS SQL Table Same Server, then add trigger to that table for insert that will transfer the data to Azure Database server
1st Option : The Local Server will burden all the task and transaction.
2nd Option : Less task and transaction.
1st Option : Too many transaction and might crash because of consecutive time in and time out. (Btw i don't know or i don't have the idea of the capacity and the capabilities of SSDT in terms of integration)
2nd Option : the two server will take burden of the task and transaction.
Thank you. Please feel free to ask questions.
BMC Footprint version 20.18.02 webservice api sample program java
I am using BMC Footprints version 20.18.02. Using SoupUI I am able to create a ticket in my workspace. But I need a java program to do the same, but in the documentation of the software I don't find the sample code for it. Anybody help me out.
Is there a way to detect another host bmc alived via locl bmc?
This is my topology:
+-------------------+ | | +---------+ ipmi switch +----+ | | | | | +-------------------+ | | | | | +---+---+ +---+---+ | | | | | bmc | | bmc | | | | | +-----+-------+----------+ +-----+-------+----------+ | | | | | | | | | | | | | host1 | | host2 | | | | | | | | | | | | | +-----+--------+---------+ +-----+--------+---------+ | | | | | mgmt | | mgmt | | nic | | nic | +----+---+ +----+---+ | | | | | | | | | +-------------------+ | | | | | +----------+ mgmt switch +---+ | | +-------------------+
Is there a way to detect bmc of host2 alive only via bmc of host1(via ipmi switch) not mgmt network(mgmt nic and mgmt switch)?
I searched man page of ipmitool and freeipmi
BMC ADDM Discovery query
Is there a way to retrieve, by custom query on the appliance, a list of all host (linux os) with last success scan, last failure scan and the credential used in both case? Thank you...I appreciate your help