System i: system name = unknown? - sql

I'm retrieving the name of some IBM System i from SQL with
; select local_host_name from qsys2.tcpip_info
This works for several machines, giving me in the first characters the same value than DSPNETA.
But with one machine, the result is "UNKNOWN" (and this is not the good name!)
What could be the problem with this machine?

There's simply no TCP/IP host name assigned...
A bit strange, especially now-a-days, but computers only care about the IP Address.
Ask the admins to assign it via the Change TCP/IP Domain (CHGTCPDMN) command
EDIT
I suspect you've got a name assigned in a DNS server somewhere, so your PC clients haven't noticed.

Related

Dynamic URL in content-field in Petaho Report Designer

I have bit of a problem here. I have created report in PRD 7.1 which is showing data from database. The last column in DB is path to a image, that is stored on disk (of the machine where Pentaho is running).
So bacisaly, I have Open formula that is: =IFNA("http://myserver.com/snapshots/" & [path_to_snapshot]; "http://myserver.com/image_icon_2.png") which is value of content field.
It is working well deployed on the public server, report shows the picture and when someone click on it, it opens the picture.
However, as I have deployed this on a server that has no public address and can be accessed through more VPN IP addresses, there is a problem. I have to specifically write IP address of server into the formula, and while it will show picture in report, it wont show it after clicking on the picture (unless you are accessing the server from the one specified IP address).
Its also not working with either localhost nor 127.0.0.1 in the IP address field.
Could please anybody explain me where the problem is and how to make it work?
I am not very skilled in web things. I do understand that it is not showing picture, because after I click on it, it is looking for it on my machine (in case of localhost or 127.0.0.1) but why it is shown on report than?)
Well my friend, it can be a lot of reasons, even not pentaho related, but, it's a light in the deep end of the tunnel, you are lucky today.
If the problem is the IP address, you need to register it in your DNS (or company's DNS), so, if the IP address changes, the DNS query will return the current IP address and will show the image.
It's not clear the VPN setup you are using, either the pentaho deployment setup, so it's hard to give you a better answer.

Creating listeners with SQL Server AlwaysOn suddenly stopped working

Problem: I created 10 AlwaysOn Availability Groups with SQL Server without a problem. Suddenly, it stopped worked and I kept getting this ONLY on the "create the listener" part:
Msg 19471, Level 16, State 0, Line 9
The WSFC cluster could not bring the Network Name resource with DNS name 'L_MyListener' online. The DNS name may have been taken or have a conflict with existing name services, or the WSFC cluster service may not be running or may be inaccessible. Use a different DNS name to resolve name conflicts, or check the WSFC cluster log for more information.
Sometimes I also got Msg 19476. This was all maddening because one moment I was creating listeners and availability groups, feeling like a guru, and then everything stopped and I lost hours of time.
So how do you solve this? Of course, Microsoft's own suggested text in the above error description was NOT helpful.
Apparently, each listener is really creating a mini "computer" in Active Directory if you look. And... here's the kicker, a domain user can only join a computer to a domain a limited number of times and that default is 10. Who would have thought that adding listeners equates with joining users to a domain!???! Microsoft really should have made this listener thing more intuitive, at least in their description text of possible problems.
Well, on your Domain Controller, open ADSI Edit, configure it the first time to look at your default naming context of your domain, like "DC=yourname..." with the CN= rows below that. Now, right click on the "DC=" line, choose Properties and navigate down to ms-DS-MachineAccountQuota and increase the limit from 10 to something else like 100.
You may need to run "GPUPDATE /FORCE" on the SQL Servers where you want to try again to add the listener. You may also have to clean up the mess it left (i.e. delete and restore the bad attempt at setting up your group and listener) before you try again.
With SQL Server 2016 supposedly going to require each database be in its own group, with its own listener, people will hit this limit of 10 quite easily!
I hope this helps you. If so, please mark this as the answer on the left. Of course, there are other reasons why people may get this error, as in the Microsoft error now but this whole post is for people who had it working just fine and then suddenly it stopped.

How to get my vb.net program to use one network over another

vb.net programmer and I am curious to know if there is a method to use so any program i am developing can select a specific network. I am asking this because i recently noticed that while on the wifi, i was still able to access a mapped drive from the lan connection. if there are any resources out there to enlighten me, im all ears because its annoying to constantly switch to my lan connection every time i have to test or deal with a db issue. Additional information: my programs connect to microsoft sql servers on the lan network.
Well I think I found an answer to my question, though it does not have anything to do with vb code. Since I am only dealing with two connections: my departments wifi and may workplace's main network(lan) , I decided to change the metric value of the lan connection to 9999 and left the wifi as automatic. somehow Im able to keep both connections open and my program connects normally to the mssql sever on the lan while im able to use my department's wifi for testing and browsing. interesting stuff there. thanks for the interesting links though.

There is a "%{nas-name}" variable to get the current nas name and use into dialup.conf freeradius?

I am working with freeradius, I could install and configure it on linux server and I can receive request from remote devices but I need to make a change to the query that inserts into radacct table to save the name of the nas (for usage reports) but I can´t find something about it, this is really simple, I just need to know what variable to use, for example I know that I can use %{User-Name} variable to get the name of the user that is connecting to freeradius, I need a similar variable to get the nas name, that´s all.
I hope it exists and you can tell what it is.
Thanks in advance, have a nice day.
That's be %{%{NAS-Identifier}:-%{client:shortname}}

Why use sysprep for Sharepoint 2010 Developer VMs?

I have read several articles about creating a Sharepoint Developer VM. They all say to "sysprep" them. Why (exactly) must the sysprep be done? What kind of problems (and why) will we run into if we don't sysprep them?
(I suppose what I am asking is, what would be the difference in doing "sysprep" and just bringing up the VM, changing its Name/IP, reboot then install SP?)
I've had success in the past with just copying Hyper-V vhd's as a method of cloning VM's - however, I now use sysprep when cloning any of my machines as it's been mentioned as a best practice in many places. And, it does some nice things like allowing you to cleaning up a bunch of stuff that I don't want to duplicate and letting me choose a new name for the machine on boot. From MS Sysprep Technical Reference:
Sysprep prepares a computer for disk
imaging or delivery to a customer by
configuring the computer to create a
new computer security identifier (SID)
when the computer is restarted. In
addition, Sysprep cleans up user- and
computer-specific settings and data
that must not be copied to a
destination computer.
And you may want to read Russinovich's post on The Machine SID Duplication Myth (and Why Sysprep Matters) for more good explanation of how SIDs work and the very last paragraph has another reason for going this route:
Note that Sysprep resets other
machine-specific state that, if
duplicated, can cause problems for
certain applications like Windows
Server Update Services (WSUS), so
Microsoft’s support policy will still
require cloned systems to be made
unique with Sysprep.
Good luck!